import Vue from 'vue'
import VueRouter from 'vue-router'
import Reg from '../views/Reg.vue'
 import Index from '../views/Index.vue'
import Login from '../views/login.vue'
import Findpass from '../views/findpass.vue'
import Center from '../views/center.vue'
import Ranking from '../views/Ranking.vue'
import Bjqm from '../views/Bjqm.vue'
import Jifen from '../views/Jifen.vue'
import Teacher from '../views/Teacher.vue'
import Edit from '../views/edit.vue'


Vue.use(VueRouter)

const routes = [
  {
    path: '/ref',
    name: 'Reg',
    component: Reg
  },
  {
    path: '/login',
    name: 'login',
    component: Login
  },{
    path: '/',
    name: 'index',
    component: Index
  },
  {
    path: '/findpass',
    name: ' Findpass',
    component:  Findpass
  },

  {
    path: '/PointsRules',
    name: 'PointsRules',
    component: () => import( '../views/PointsRules.vue')
  },
  {
    path: '/tes',
    name: 'TES',
    component: () => import( '../views/TES.vue')
  },
  {
    path: '/center',
    name: 'Center',
    component: Center
  },
  {
    path: '/Ranking',
    name: ' Ranking',
    component:  Ranking
  },
  {
    path: '/bjqm',
    name: 'Bjqm',
    component: Bjqm
  },
  {
    path: '/Jifen',
    name: 'Jifen',
    component: Jifen
  },
  
  {
    path: '/teacher',
    name: 'Teacher',
    component: Teacher
  },
  {
    path: '/edit',
    name: 'Edit',
    component: Edit
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
